Current Location: Home> Function Categories> deg2rad

deg2rad

Convert angle to radians
Name:deg2rad
Category:math
Programming Language:php
One-line Description:Convert angle to radians.

Definition and usage

deg2rad() function converts angles to radians.

Example

Example 1

 <?php
echo deg2rad ( "30" ) ;
echo deg2rad ( "10" ) ;
echo deg2rad ( "1587" ) ;
echo deg2rad ( "70" ) ;
?>

Try it yourself

Example 2

 <?php
$deg = 180 ;
$rad = deg2rad ( $deg ) ;
echo "angle $deg equals radian $rad " ;
?>

Try it yourself

grammar

 deg2rad ( degree_number )
parameter describe
degree_number Required. Specify the angle to be converted.

illustrate

This function converts degree_number from angle to radian.

Similar Functions
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Leave the method of sorting floor

    floor

    Leavethemethodofsort
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Calculate the index of e exp

    exp

    Calculatetheindexofe
  • Reverse cosine acos

    acos

    Reversecosine
  • Antihyperbolic tangent atanh

    atanh

    Antihyperbolictangen